using System.Collections.Generic;
using UnityEngine;

[CreateAssetMenu(fileName = "AttackTarget-获得主动攻击的棋子", menuName = "Skill/Target/AttackTarget-获得主动 攻击的棋子")]
public class AttackTarget : TargetSelectorBase
{
    public override List<Chess> SelectTargets(Chess chess, GameEvent e)
    {
        return e switch
        {
            AttackChessEvent attackChessEvent => new List<Chess>() { attackChessEvent.AttackChess },
            KillChessEvent killChessEvent => new List<Chess>() { killChessEvent.AttackChess },
            _ => null
        };
    }
}